package com.bonuo.crm.mapper;

import com.bonuo.crm.domain.Agent;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

public interface AgentMapper {
    List<Agent> selectAgentList(Agent agent);

    Integer insertAgent(Agent agent);

    Integer deleteAgentById(Integer id);

    Integer updateAgent(Agent agent);

    Integer selectAgentByName(String schoolOrCompanyName);

    String selectClientByTaxNumber(Agent agent);

    List<Agent> selectWeeklyAgentList(Integer userId);
}
